<div class="pagination" style="width:100%">


    <div style="float:center;width:70%;">
    	<ul>
        <!-- First page link -->
        <?php if (isset($this->previous)): ?>

           	<li>    <a href="<?php echo  $this->url(array('page' => $this->first)); ?>">Start</a> </li>

        <?php else: ?>
              	<li>    <span class=""><a href="#">Start</a></span>  </li>
        <?php endif; ?>
    
        <!-- Previous page link -->
    
        <?php if (isset($this->previous)): ?>

      	        <li>   <a href="<?php echo  $this->url(array('page' => $this->previous)); ?>">&lt; Previous</a>  </li>
      	

        <?php else: ?>
           	<li>   <span class=""><a href="#"> Previous </a></span>  </li>
        <?php endif; ?>
      
        <!-- Numbered page links -->
        <?php foreach ($this->pagesInRange as $page): ?>
            <?php if ($page != $this->current): ?>

                            <li>   <a href="<?php echo  $this->url(array('page' => $page)); ?>"><?php echo $page; ?></a> </li>

            <?php else: ?>
                <li><a href="#"><?php echo  $page; ?></a></li>
            <?php endif; ?>
        <?php endforeach; ?>
        <!-- Next page link -->
        <?php if (isset($this->next)): ?>
        <?php if($this->params!=null){?>
            <li>    <a href="<?php echo $this->url(array('page' => $this->next)); ?>">Next &gt;</a> </li>
        <?php }else{?>
       	 <li>    <a href="<?php echo $this->url(array('page' => $this->next)); ?>">Next &gt;</a> </li>
        <?php }?>
        <?php else: ?>
            <li>  <span class=""><a href="#">Next</a></span> </li>
        <?php endif; ?>
        <!-- Last page link -->
        <?php if (isset($this->next)): ?>
         <?php if($this->params!=null){?>
           	<li>     <a href="<?php echo $this->url(array('page' => $this->last)); ?>">End</a> </li>
         <?php }else{?>
           	<li>     <a href="<?php echo $this->url(array('page' => $this->last)); ?>">End</a> </li>
         <?php }?>
        <?php else: ?>
          	<li>    <span class=""><a href="#">End</a></span> </li>
        <?php endif; ?>
        <li style="line-height: 30px;padding-left: 20px;">  Page <?php echo  $this->current; ?> of <?php echo  $this->last; ?> </li>
          </ul>
    </div>
 </div>
